package dragon.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: Leo
 * @Date: 2020/2/6 17:29
 */
@Controller
public class SecurityController {

    @RequestMapping("/login")
    public String test(){
        return "login1";
    }

    @RequestMapping("/logout")
    public String logout(Long userId){
        return "test";
    }

    @RequestMapping("/index")
    public String index(){
        return "index";
    }

    @RequestMapping("/signup")
    public String signup(){
        return "signup";
    }

    @RequestMapping("/errorpage")
    public String loginError(){
        return "errorpage";
    }

    @RequestMapping("/success")
    public String registerSuccess(){
        return "success";
    }

}
